Class sjl.EnumerationIterator
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class sjl.EnumerationIterator

java.lang.Object
   |
   +----sjl.EnumerationIterator

public class EnumerationIterator
extends Object
implements Enumeration
EnumerationIterator is an iterator adapter that turns a range of forward iterators into an Enumeration.

Copyright © 1996 Finn Bock


Constructor Index

 o EnumerationIterator(ForwardIterator, ForwardIterator)
Contruct an Enumeration over the specified range.

Method Index

 o hasMoreElements()
Returns true if the enumeration contains more elements; false if its empty.
 o nextElement()
Returns the next element of the enumeration.

Constructors

 o EnumerationIterator
  public EnumerationIterator(ForwardIterator first,
                             ForwardIterator last)
Contruct an Enumeration over the specified range.
Parameters:
first - The beginning of the range.
last - The end of the range.

Methods

 o hasMoreElements
  public boolean hasMoreElements()
Returns true if the enumeration contains more elements; false if its empty.
 o nextElement
  public Object nextElement()
Returns the next element of the enumeration. Calls to this method will enumerate successive elements.

All Packages  Class Hierarchy  This Package  Previous  Next  Index